var maxResult = function(arr, k) {

};
console.log(maxResult([1, -1, -2, 4, -7, 3], 2))